home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / super_ka.swf / scripts / DefineSprite_936 / frame_20 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  1.3 KB  |  54 lines

  1. _root.effectSoundFunc("doorOpen");
  2. var temp = _root.game.currentGate;
  3. var gateNum = temp;
  4. if(temp < 10)
  5. {
  6.    temp += 1;
  7.    temp = "gate" + temp;
  8.    _root.gotoAndStop(temp);
  9.    _root.attachMovie("final_mc","final_mc",50000);
  10.    _root.final_mc.gotoAndStop("success");
  11.    switch(gateNum)
  12.    {
  13.       case 1:
  14.          _root.final_mc.gate_mc.gotoAndStop(1);
  15.          break;
  16.       case 2:
  17.          _root.final_mc.gate_mc.gotoAndStop(1);
  18.          break;
  19.       case 3:
  20.          _root.final_mc.gate_mc.gotoAndStop(2);
  21.          break;
  22.       case 4:
  23.          _root.final_mc.gate_mc.gotoAndStop(2);
  24.          break;
  25.       case 5:
  26.          _root.final_mc.gate_mc.gotoAndStop(3);
  27.          break;
  28.       case 6:
  29.          _root.final_mc.gate_mc.gotoAndStop(3);
  30.          break;
  31.       case 7:
  32.          _root.final_mc.gate_mc.gotoAndStop(4);
  33.          break;
  34.       case 8:
  35.          _root.final_mc.gate_mc.gotoAndStop(4);
  36.          break;
  37.       case 9:
  38.          _root.final_mc.gate_mc.gotoAndStop(5);
  39.          break;
  40.       case 10:
  41.          _root.final_mc.gate_mc.gotoAndStop(5);
  42.    }
  43.    _root.final_mc._x = 280;
  44.    _root.final_mc._y = 200;
  45.    _root.score = _root.below_mask.scoreShow;
  46.    _root.clearScreen();
  47. }
  48. else
  49. {
  50.    _root.gotoAndPlay("pass");
  51.    _root.score = _root.below_mask.scoreShow;
  52.    _root.clearScreen();
  53. }
  54.